<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	
  	<jsp:include page="/adminV1/include/include.jsp"></jsp:include>
  	<script type="text/javascript">
  		
  		function cc(){
  			var put = $('#input').html();
  			var url = "rest/RmSystemResourceService/addrmsystemresource";
  			$.post(url,put,function(v){
  				alert(v)
  			});
  		}
  	</script>
  </head>
  
  <body>
  <h1>get data</h1>
    <form action="rest/RmSystemResourceService/getrmsystemresourcelistbyid" method="get">
    	<input name="id" style ="width: 300px;" value="ae1b3814-ca8c-479f-bb61-f53709c4d6a7"/>
	  	<br/>
	  	<input type="submit"  />
    </form>
    <h1>add data</h1>
    <form action="rest/RmSystemResourceService/addrmsystemresource" method="post">
    	<textarea id='input' name="input" rows="20" cols="80" >[{"createtime":"2013/11/26 03:01:32","objid":"ae1b3814-ca8c-479f-bb61-f53709c4d6a7","updatetime":"2013/11/26 03:02:06","name":"豆腐干","descript":"速度","createuserObjid":"1","selfObjid":"","code":"pljk","disindex":"1385406092051"}]</textarea>
	  	<br/>
	  	<input type="button" onclick="cc()"  />
    </form>
  </body>
</html>
